package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 流水记录对象 app_trade_record
 *
 * @author ruoyi
 * @date 2024-08-07
 */
public class AppTradeRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 类型，0：充值，1：提现 2 发红包 3 领取红包
     */
    @Excel(name = "类型，0：充值，1：提现 2 发红包 3 领取红包")
    private Integer type;

    /**
     * 充值、提现金额
     */
    @Excel(name = "充值、提现金额")
    private BigDecimal money;

    /**
     * 充值银行或“支付宝”
     */
    @Excel(name = "充值银行或“支付宝”")
    private String rechargeBank;

    /**
     * 汇款人
     */
    @Excel(name = "汇款人")
    private String remitter;

    /**
     * 收款账号
     */
    @Excel(name = "收款账号")
    private String account;

    /**
     * 收款名称，直接输入银行名称或“支付宝”
     */
    @Excel(name = "收款名称，直接输入银行名称或“支付宝”")
    private String bankType;

    /**
     * 收款人
     */
    @Excel(name = "收款人")
    private String payee;

    @Excel(name = "打款地址")
    private String payAddress;

    @Excel(name = "打款凭证")
    private String paymentVoucher;
    /**
     * 审核状态，0：未提交，1：待确认，2：已确认，3：未通过
     */
    @Excel(name = "审核状态，0：未提交，1：待确认，2：已确认，3：未通过")
    private Integer auditType;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;


    public String getPaymentVoucher() {
        return paymentVoucher;
    }

    public void setPaymentVoucher(String paymentVoucher) {
        this.paymentVoucher = paymentVoucher;
    }

    public String getPayAddress() {
        return payAddress;
    }

    public void setPayAddress(String payAddress) {
        this.payAddress = payAddress;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setRechargeBank(String rechargeBank) {
        this.rechargeBank = rechargeBank;
    }

    public String getRechargeBank() {
        return rechargeBank;
    }

    public void setRemitter(String remitter) {
        this.remitter = remitter;
    }

    public String getRemitter() {
        return remitter;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getAccount() {
        return account;
    }

    public void setBankType(String bankType) {
        this.bankType = bankType;
    }

    public String getBankType() {
        return bankType;
    }

    public void setPayee(String payee) {
        this.payee = payee;
    }

    public String getPayee() {
        return payee;
    }

    public void setAuditType(Integer auditType) {
        this.auditType = auditType;
    }

    public Integer getAuditType() {
        return auditType;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createTime", getCreateTime())
                .append("userId", getUserId())
                .append("type", getType())
                .append("money", getMoney())
                .append("rechargeBank", getRechargeBank())
                .append("remitter", getRemitter())
                .append("account", getAccount())
                .append("bankType", getBankType())
                .append("payee", getPayee())
                .append("auditType", getAuditType())
                .append("auditTime", getAuditTime())
                .toString();
    }
}
